<html>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=50589">bug 50589</a>:
Fire an error event for empty 404 script.</p>
<p>Should say SUCCESS:</p>
<p id=result></p>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<script
  src="resources/404-with-empty-body.cgi"
  onload="document.getElementById('result').textContent = 'FAILURE'"
  onerror="document.getElementById('result').textContent = 'SUCCESS'"></script>
</body>
</html>
